package com.jchy.renderit.displayable;
 
import com.jchy.renderit.core.MultiPrimitiveObject;
import com.jchy.renderit.core.Point;

public class Octahedron2 extends MultiPrimitiveObject
{
    Octahedron2()
    {
        Point a=new Point( 0.0, 1.0, 0.0);
        Point b=new Point( 1.0, 0.0, 0.0);
        Point c=new Point( 0.0, 0.0, 1.0);
        Point d=new Point(-1.0, 0.0, 0.0);
        Point e=new Point( 0.0, 0.0,-1.0);
        Point f=new Point( 0.0,-1.0, 0.0);
        Triangle bca, cda, dea, eba, bcf, cdf, def, ebf;
        bca=new Triangle(b,c,a);
        cda=new Triangle(c,d,a);
        dea=new Triangle(d,e,a);
        eba=new Triangle(e,b,a);
        bcf=new Triangle(b,c,f);
        cdf=new Triangle(c,d,f);
        def=new Triangle(d,e,f);
        ebf=new Triangle(e,b,f);
        multi.addElement(bca);        
        multi.addElement(cda);        
        multi.addElement(dea);        
        multi.addElement(eba);        
        multi.addElement(bcf);        
        multi.addElement(cdf);        
        multi.addElement(def);        
        multi.addElement(ebf);        
    }
}
